﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class vehicle {
     
    }
    class bird : animal2, Iflyable
    {
        public void fly()
        {
            Console.WriteLine("会飞的鸟");
        }

        public void land()
        {
            Console.WriteLine("会着陆的鸟");
        }

        public void takeoff()
        {
            Console.WriteLine("载不了的鸟");
        }
        public void layeggs() {
            Console.WriteLine("会下蛋");
        }
    }


    class plane:vehicle,Iflyable
    {
        public void carryPassage()
        {
            Console.WriteLine("能载乘客");
        }

        public void fly()
        {
            Console.WriteLine("飞机会飞");
        }

        public void land()
        {
            Console.WriteLine("飞机着陆"); 
        }

        public void takeoff()
        {
            Console.WriteLine("飞机载人");
        }
    }
    class superman : animal2, Iflyable

    {
        public void fly()
        {
            Console.WriteLine("超人会飞");
        }

        public void land()
        {
            Console.WriteLine("超人屁股着陆");
        }

        public void takeoff()
        {
            Console.WriteLine("超人4手载人");
        }
    }
    class animal2
    {
        public void eat()
        {
            Console.WriteLine("会吃");
        }
    }
    interface Iflyable
    {
        void takeoff();
        void fly();
        void land();
    }
}
